package cn.zwx.member.svc.domain.enums;

/**
 * @author zhangwenxue
 */
public enum MemberCodeEnum {

    /**
     * 用户已经注册
     */
    HAVE_BEEN_REGISTERED_ERROR(40001,"用户已经注册"),

    GENERATE_PASSWORD_ERROR(40002,"生成密码异常"),

    USER_INFO_NOT_EXIST_ERROR(40003,"用户信息不存在"),

    CONVERT_IMAGE_ERROR(40004,"转换图片异常"),
    CAPTCHA_VERIFY_ERROR(40005,"验证码错误"),

    USER_STATE_ERROR(40006,"您已经被限制,请联系管理员"),

    USER_PASSWORD_ERROR(40007,"用户账号密码错误,您还剩下%s次机会"),

    OVERHEAD_PASSWORD_ERROR(40008,"用户账号密码次数超过"),

    PARSE_TOKEN_ERROR(40010,"解析token异常"),

    NOT_QUERY_ADDRESS_EXIST_ERROR(40012,"未查询用户地址信息"),

    ADDRESS_EXIST_ERROR(40013,"添加地址已经存在"),

    ADDRESS_NOT_EXIST_ERROR(40014,"未查询到地址信息"),

    ALREADY_SIGN_ERROR(40015,"您今天已经已经签到,请勿重复签到"),

    AUTHORIZATION_ERROR(40016,"认证失败"),

    NOT_AUTHORIZATION_ERROR(40016,"认证不通过"),

    MEMBER_PASSWORD_ERROR(40017,"用户密码错误"),

    SEND_MSG_ERROR(40018,"发送短信失败"),

    SEND_TEMPLATE_CONFIGURATION_ERROR(40019,"短信模板未配置"),

    VERIFY_CODE_GO_OUT_ERROR(40020,"您的验证码已经过期"),

    VERIFY_CODE_ERROR(40020,"验证码错误"),
    ;

    private final int code;
    private final String msg;
    MemberCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
